package com.ygg.cps.afx.constant ;

public class CommonEnum
{
    
    /**
     * 操作PreparedStatemen添加参数的类型
     */
    public static enum FILL_PSTMT_TYPE
    {
        BYTE(1), SHORT(2), INT(3), STRING(4), DATE(5), TIMESTAMP(6), LONG(7), FLOAT(8);
        
        private int value;
        
        private FILL_PSTMT_TYPE(int iValue)
        {
            this.value = iValue;
        }
        
        public int getValue()
        {
            return this.value;
        }
    }
    
    /**
     * 协议返回状态
     */
    public static enum PROTOCOL_RESPONSE_STATUS
    {
        FAILED("0"), // 失败
        SUCCEED("1"), // 成功
        INVALID("2"); // 无效密钥
        
        private String value;
        
        private PROTOCOL_RESPONSE_STATUS(String iValue)
        {
            this.value = iValue;
        }
        
        public String getValue()
        {
            return this.value;
        }
    }
    
    /**
     * 业务返回状态
     */
    public static enum BUSINESS_RESPONSE_STATUS
    {
        FAILED("0"), // 失败
        SUCCEED("1"); // 成功
        
        private String value;
        
        private BUSINESS_RESPONSE_STATUS(String iValue)
        {
            this.value = iValue;
        }
        
        public String getValue()
        {
            return this.value;
        }
    }
    
}
